package com.sciencep.pro.core.service.impl;

import com.sciencep.pro.core.domain.dto.user.UserAttendanceTO;
import com.sciencep.pro.core.domain.entity.UserAttendance;
import com.sciencep.pro.core.dao.UserAttendanceMapper;
import com.sciencep.pro.core.service.IUserAttendanceService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * @author Sciencep
 */
@Service
public class UserAttendanceServiceImpl extends ServiceImpl<UserAttendanceMapper, UserAttendance> implements IUserAttendanceService {

    @Override
    public boolean saveUserAttendance(UserAttendanceTO userAttendanceTO) {
                baseMapper.saveUserAttendanceBack(userAttendanceTO);
        return baseMapper.saveUserAttendance(userAttendanceTO);
    }

    @Override
    public boolean updateUserAttendance(UserAttendanceTO userAttendanceTO) {
        baseMapper.updateUserAttendanceBack(userAttendanceTO);
        return baseMapper.updateUserAttendance(userAttendanceTO);
    }
}
